home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 October / Chip Ekim 2003.iso / prog / share / boltlock / setup.exe / BLbin.bat next >
Encoding:
DOS Batch File  |  2003-08-03  |  519 b   |  31 lines

  1. @echo off
  2.  
  3. ::    Use this batch file to encrypt
  4. ::    or decrypt binary files with
  5. ::    BOLTLOCK.
  6.  
  7. echo ::::BLbin::::
  8.  
  9. if %1'==' goto usage
  10. if %1'==/E' goto encode
  11. if %1'==/e' goto encode
  12. if %1'==/D' goto decode
  13. if %1'==/d' goto decode
  14. goto usage
  15.  
  16. :encode
  17. uuencode %2>BLIN.tmp
  18. boltlock /N /K /C /E BLIN.tmp %3
  19. echo %2 has been encrypted to %3.
  20. goto end
  21.  
  22. :decode
  23. boltlock /N /C /D %2 BLOUT.tmp
  24. uudecode BLOUT.tmp
  25. del BLOUT.tmp
  26. goto end
  27.  
  28. :usage
  29. echo USAGE: 
  30. echo BLbin [/E or /D] infile outfile
  31. :end